package string;

/**
 * @Author Klys
 * @Date 2023/4/29 13:25
 * @Description
 * @Version 1.0
 */
public class Demo05 {

    public static void main(String[] args) {
        String s = new String("klys");
        String s1 = "klys";
        System.out.println(s == s1);
        System.out.println(s.equals(s1));


        String s2 = new String("klys");
        String s3 = new String("klys");
        System.out.println(s2 == s3);
    }
}
